import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/distribution_child_entity.dart';

DistributionChildEntity $DistributionChildEntityFromJson(Map<String, dynamic> json) {
  final DistributionChildEntity loginBeanEntity = DistributionChildEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }

  final String? orderId = jsonConvert.convert<String>(json['orderId']);
  if (orderId != null) {
    loginBeanEntity.orderId = orderId;
  }

  final String? orderNumber = jsonConvert.convert<String>(json['orderNumber']);
  loginBeanEntity.orderNumber = orderNumber;

  final String? consignee = jsonConvert.convert<String>(json['consignee']);
  loginBeanEntity.consignee = consignee;

  final String? mobilePhone = jsonConvert.convert<String>(json['mobilePhone']);
  loginBeanEntity.mobilePhone = mobilePhone;

  final String? detailedaddress = jsonConvert.convert<String>(json['detailedaddress']);
  loginBeanEntity.detailedaddress = detailedaddress;

  final String? stationTime = jsonConvert.convert<String>(json['stationTime']);
  loginBeanEntity.stationTime = stationTime;

  final String? status = jsonConvert.convert<String>(json['status']);
  if (status != null) {
    loginBeanEntity.status = status;
  }

  final double? goodsNumber = jsonConvert.convert<double>(json['goodsNumber']);
  if (goodsNumber != null) {
    loginBeanEntity.goodsNumber = goodsNumber;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $DistributionChildEntityToJson(DistributionChildEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['orderId'] = entity.orderId;
  data['orderNumber'] = entity.orderNumber;
  data['consignee'] = entity.consignee;
  data['mobilePhone'] = entity.mobilePhone;
  data['detailedaddress'] = entity.detailedaddress;
  data['stationTime'] = entity.stationTime;
  data['status'] = entity.status;
  return data;
}
